// socket事件
export const CREATECONSORTIUM = 'createConsortium' // 创建联盟
export const CREATEORG = 'createOrg' // 创建组织
export const CREATECHANNEL = 'createChannel' // 创建通道
export const INSTALLCHAINCODE = 'installChaincode' // 安装链码
export const DEPLOYCHAINCODE = 'deployChaincode' // 部署链码
export const UPGRADECHAINCODE = 'upgradeChaincode' // 升级链码
export const DELETECHAINCODE = 'deleteChaincode' // 删除链码
export const ISSUECERTIFICATE = 'issueCertificate' // 创建证书
export const PEERNODEJOINCHANNEL = 'peerNodeJoinChannel' // peer节点加入通道
export const DEPLOYQUORUMCONTRACT = 'qubeDeplyContract' // 部署合约-quorum
export const NEWNODE = 'NewNode' // 组织添加节点
export const REMOVENODE = 'RemoveNode' // 组织删除节点
export const STARTNODE = 'StartNode' // 组织启动节点
export const STOPNODE = 'StopNode' // 组织停止节点
export const UPGRADENODE = 'UpgradeNode' // 组织升级节点
export const CONSORTIUMCONFIGUPDATE = 'consortiumConfigUpdate' // 更新系统配置
export const CHANNELCONFIGUPDATE = 'channelConfigUpdate' // 更新通道配置
export const CERTREVOKE = 'certRevoke' // 吊销证书
export const CERTUPDATE = 'certUpdate' // 更新证书
export const ORGANIZATIONUPDATERESOURCE = 'organizationUpdateResource' // 更新组织资源
export const CERTFROZEN = 'certFrozen' // 证书冻结
export const CERTUNFROZEN = 'certUnfrozen' // 证书解冻

export default {
  [CREATECONSORTIUM]: {
    title: '联盟创建',
    success: '联盟创建成功',
    failed: '联盟创建失败',
  },
  [CREATEORG]: {
    title: '组织创建',
    success: '组织创建成功',
    failed: '组织创建失败',
  },
  [CREATECHANNEL]: {
    title: '通道创建',
    success: '通道创建成功',
    failed: '通道创建失败',
  },
  [INSTALLCHAINCODE]: {
    title: '链码安装',
    success: '链码安装成功',
    failed: '链码安装失败',
  },
  [DEPLOYCHAINCODE]: {
    title: '链码部署',
    success: '链码部署成功',
    failed: '链码部署失败',
  },
  [UPGRADECHAINCODE]: {
    title: '链码升级',
    success: '链码升级成功',
    failed: '链码升级失败',
  },
  [DELETECHAINCODE]: {
    title: '链码删除',
    success: '链码删除成功',
    failed: '链码删除失败',
  },
  [ISSUECERTIFICATE]: {
    title: '创建证书',
    success: '证书创建成功',
    failed: '证书创建失败',
  },
  [PEERNODEJOINCHANNEL]: {
    title: '节点加入通道',
    success: '节点加入通道成功',
    failed: '节点加入通道失败',
  },
  [DEPLOYQUORUMCONTRACT]: {
    title: '部署合约-QUORUM',
    success: '部署合约成功',
    failed: '部署合约失败',
  },
  [NEWNODE]: {
    title: '添加节点',
    success: '节点添加成功',
    failed: '节点添加失败',
  },
  [REMOVENODE]: {
    title: '删除节点',
    success: '节点删除成功',
    failed: '节点删除失败',
  },
  [STARTNODE]: {
    title: '节点启动',
    success: '节点启动成功',
    failed: '节点启动失败',
  },
  [STOPNODE]: {
    title: '节点暂停',
    success: '节点暂停成功',
    failed: '节点暂停失败',
  },
  [UPGRADENODE]: {
    title: '节点升级',
    success: '节点升级成功',
    failed: '节点升级失败',
  },
  [CONSORTIUMCONFIGUPDATE]: {
    title: '系统更新配置',
    success: '系统配置更新成功',
    failed: '系统配置更新失败',
  },
  [CHANNELCONFIGUPDATE]: {
    title: '通道更新配置',
    success: '通道配置更新成功',
    failed: '通道配置更新失败',
  },
  [CERTREVOKE]: {
    title: '注销证书',
    success: '证书注销成功',
    failed: '证书注销失败',
  },
  [CERTUPDATE]: {
    title: '修改证书',
    success: '证书修改成功',
    failed: '证书修改失败',
  },
  [ORGANIZATIONUPDATERESOURCE]: {
    title: '更新组织资源',
    success: '组织资源更新成功',
    failed: '组织资源更新失败',
  },
  [CERTFROZEN]: {
    title: '证书冻结',
    success: '证书冻结成功',
    failed: '证书冻结失败',
  },
  [CERTUNFROZEN]: {
    title: '证书解冻',
    success: '证书解冻成功',
    failed: '证书解冻失败',
  },
}
